for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import { useRef } from "react";
import useToastFunction from "./toastFunction";
import useToastType from "./toastType";
function useToast(options = {}) {
const toastRef = useRef();
const toast = useToastFunction(toastRef);
const toastType = useToastType(toast, options);
return [toastType, toastRef];
}
export default useToast;